import { request } from '@/utils'

export default {
  create: data => request.post('/system/menu/create', data),
  read: (params = {}) => request.get('/system/menu/index', { params }),
  update: data => request.put(`/system/menu/update/${data.id}`, data),
  delete: data => request.delete(`/system/menu/delete/${data.id}`),

  getAllPermissionTree: () => request.get('/system/menu/tree'),
}
